package com.service;

import java.util.List;
import java.util.Map;

import com.beans.Book;
import com.beans.User;
import org.apache.ibatis.annotations.Mapper;
import com.beans.Novel;

@Mapper
public interface NovelService {
    int addNovel(Novel user);

    int updateNovel(Novel user);

    int deleteNovel(int id);

    Novel getNovelByID(int id);

    Novel getNovelByName(String novelname);

    List<Novel> getAllNovel();

    List<Novel> getNovelname(String userName);

    List<Novel> getNovelType(String noveltype);


    int addBook(Book book);

    int deleteBook(String novelname);

    List<Novel> getBook(String userName);


    int getBookByUserName(String userName,String novelname);

    Map<String,Object> queryByPage(Novel novel, Integer page, Integer limit);
}

